<?php
class page extends autoload{
	public $title;
	public $keyWords;
	public $description;
	public $author;
	public static $Log;
	public function __construct(){
		$this->title='飘零管理系统';
		$this->keyWords='飘零,管理系统,飘零管理,magento,php,mysql';
		$this->description='飘零管理系统,博客,相册,事件,财务等管理';
		$this->author='飘零';
		self::$Log=new Log();
	}
	public function formDataFilter($str){
		$str = htmlspecialchars($str);
		$str = str_replace(chr(13),"<br />",$str);
		$str = str_replace(chr(32),"&nbsp;",$str);
		return $str;
	}
	//一维数组数据过滤
	public function arrayDataFilter($arrayName){
		if ($arrayName[0]!=""){
			foreach ($arrayName as $key=>$values){
				$arrayName[$key] = $this->formDataFilter($values);
			}
		}
		return $arrayName;
	}
	public function setTimeZone($timeZone="Asia/shanghai"){
		date_default_timezone_set($timeZone);
	}
	public function getFullDate($timeZone="Asia/shanghai"){
		$this->setTimeZone($timeZone="Asia/shanghai");
		return date("Y-m-d H:i:s");
	}
	public function getYear($timeZone="Asia/shanghai"){
		$this->setTimeZone($timeZone="Asia/shanghai");
		return date("Y");
	}
}

?>